import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type Result = {
  code: String;
  data: {
    filtUrl: string;
    fullPath: string;
  };
};
// 获取商品列表
export const uploadFile = (data: object) => {
  return http.request<Result>("post", baseUrlApi("/uploadFile"), {
    data,
    headers: {
      "Content-Type": "multipart/form-data"
    }
  });
};
